<template>
  <div>
    <h1>about</h1>
    <p>{{aboutMsg}}</p>
    <router-link to="/home">回家</router-link>
    <button @click="goBack">huij</button>
  </div>
</template>
<script>
export default {
  data () {
    return {
      aboutMsg: '我是about组件',
      form:{
        id:9,
        username:'zqz',
        password:'123456'
      }
    }
  },
  methods:{
    goBack(){
      this.$router.push({
        name:'home',
        params:{
          form:this.form
        }
      })
    }
  }
}
</script>

<style scoped>

</style>